//
//  BaseViewController.h
//  Penglai
//
//  Created by intel intel on 12-5-29.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "ASIHTTPRequest.h"
#import "BottomView.h"

typedef NS_ENUM(NSInteger, MsgToastPosition) {
    
    MsgToastPositionDefault,
    MsgToastPositionCenter,
    MsgToastPositionBottom,
    MsgToastPositionTop
    
};

@interface ShowHomeBaseViewController : UIViewController<ASIHTTPRequestDelegate>
{
    MBProgressHUD *MHUD;
    UIView *keybordChageView;
    CGRect frameKeybordChageView;
    UIActivityIndicatorView *activity;
    
}
@property (nonatomic,retain) NSString *titleImage;
@property (nonatomic,retain) ASIHTTPRequest *httpRequest;

-(UIBarButtonItem*)createNavItem:(NSString *)title action:(SEL)action;
-(UIButton *)createNavigationImgButton:(NSString *)img action:(SEL)action;
-(void)showMHUD:(NSString *)msg;
-(void)hideMHUD;
-(void)hideMHUD:(NSString *)msg success:(BOOL)success;
- (void)toastMsg:(NSString *)msg;

-(void)addKeyboardNotification:(UIView *)_keybordChageView;
-(void)removeKeyboardNotification;
-(BottomView *)addBottomView;


- (void)updateDevStatusChangeData:(NSNotification *)data;

@end
